<%-- 
    Document   : Update
    Created on : Jul 5, 2014, 8:30:24 AM
    Author     : anhtu_000
--%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Update Page</title>
    </head>
    <body>
        <h1>Update</h1>
         <form action="Controller?task=update" method="post">
             Username: <input name="user" value="${param.user}" readonly><br>
             Password: <input name="pass" type="password" value="${param.pass}"><br>
             <c:if test="${param.role eq 'user'}">
                 <c:set var="isUser" value="cheked"/>
             </c:if>
             Role: <input name="role" type="radio" value="admin" checked>Admin
            <input name="role" type="radio" value="user" ${isUser}>User<br>
            <input type="submit" value="Update">
        </form>
    </body>
</html>
